package com.gree.flowable.app.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(description = "请求统一返回参数VO")
public class ReturnVO<T> implements Serializable {
    private static final long serialVersionUID = -5580228202640516960L;

    @ApiModelProperty("响应参数  200：成功 201：失败")
    private String code;

    @ApiModelProperty("响应信息")
    private String msg;

    @ApiModelProperty("泛型，响应data")
    private T data;

    public ReturnVO() {
    }

    public ReturnVO(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public ReturnVO(String code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }
}